<?php declare(strict_types=1);


namespace App\Model\Entity;

use Swoft\Db\Annotation\Mapping\Column;
use Swoft\Db\Annotation\Mapping\Entity;
use Swoft\Db\Annotation\Mapping\Id;
use Swoft\Db\Eloquent\Model;


/**
 * 切换账号表
 * Class SwitchMember
 *
 * @since 2.0
 *
 * @Entity(table="switch_member")
 */
class SwitchMember extends Model
{
    /**
     * 
     * @Id()
     * @Column()
     *
     * @var int
     */
    private $id;

    /**
     * 用户id
     *
     * @Column(name="member_id", prop="memberId")
     *
     * @var int
     */
    private $memberId;

    /**
     * 切换用户id
     *
     * @Column(name="switch_member_id", prop="switch_member_id")
     *
     * @var int
     */
    private $switchMemberId;

    /**
     * 设备  1:android 2:ios  3:web
     *
     * @Column()
     *
     * @var int|null
     */
    private $equipment;

    /**
     * 设备号
     *
     * @Column(name="equipment_number", prop="equipmentNumber")
     *
     * @var string|null
     */
    private $equipmentNumber;

    /**
     * ip
     *
     * @Column()
     *
     * @var string|null
     */
    private $ip;

    /**
     * 版本
     *
     * @Column()
     *
     * @var string|null
     */
    private $version;

    /**
     * 创建时间
     *
     * @Column(name="created_at", prop="createdAt")
     *
     * @var int|null
     */
    private $createdAt;


    /**
     * @param int $id
     *
     * @return void
     */
    public function setId(int $id): void
    {
        $this->id = $id;
    }

    /**
     * @param int $memberId
     *
     * @return void
     */
    public function setMemberId(int $memberId): void
    {
        $this->memberId = $memberId;
    }

    /**
     * @param int $switchMemberId
     *
     * @return void
     */
    public function setSwitchMemberId(int $switchMemberId): void
    {
        $this->switchMemberId = $switchMemberId;
    }

    /**
     * @param int|null $equipment
     *
     * @return void
     */
    public function setEquipment(?int $equipment): void
    {
        $this->equipment = $equipment;
    }

    /**
     * @param string|null $equipmentNumber
     *
     * @return void
     */
    public function setEquipmentNumber(?string $equipmentNumber): void
    {
        $this->equipmentNumber = $equipmentNumber;
    }

    /**
     * @param string|null $ip
     *
     * @return void
     */
    public function setIp(?string $ip): void
    {
        $this->ip = $ip;
    }

    /**
     * @param string|null $version
     *
     * @return void
     */
    public function setVersion(?string $version): void
    {
        $this->version = $version;
    }

    /**
     * @param int|null $createdAt
     *
     * @return void
     */
    public function setCreatedAt(?int $createdAt): void
    {
        $this->createdAt = $createdAt;
    }

    /**
     * @return int
     */
    public function getId(): ?int
    {
        return $this->id;
    }

    /**
     * @return int
     */
    public function getMemberId(): ?int
    {
        return $this->memberId;
    }

    /**
     * @return int
     */
    public function getSwitchMemberId(): ?int
    {
        return $this->switchMemberId;
    }

    /**
     * @return int|null
     */
    public function getEquipment(): ?int
    {
        return $this->equipment;
    }

    /**
     * @return string|null
     */
    public function getEquipmentNumber(): ?string
    {
        return $this->equipmentNumber;
    }

    /**
     * @return string|null
     */
    public function getIp(): ?string
    {
        return $this->ip;
    }

    /**
     * @return string|null
     */
    public function getVersion(): ?string
    {
        return $this->version;
    }

    /**
     * @return int|null
     */
    public function getCreatedAt(): ?int
    {
        return $this->createdAt;
    }

}
